package com.wenwei.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.wenwei.parking.BaseActivity;
import com.wenwei.parking.Constant;
import com.wenwei.parking.R;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by nidalee on 2017/10/11.
 */

public class AboutActivity extends BaseActivity {
    @Bind(R.id.base_title)
    TextView baseTitle;
    @Bind(R.id.version_tv)
    TextView versionTv;

    @Override
    public int setLayoutResourceId() {
        return R.layout.activity_about;
    }

    @Override
    protected void initView() {
        super.initView();
        baseTitle.setText("关于");
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

    @OnClick({R.id.base_back, R.id.doc})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.base_back:
                finish();
                break;
            case R.id.doc:
                Bundle b = new Bundle();
                b.putInt("type", Constant.TEXT_TYPE_DOC);
                goActivity(mContext,ActivityTv.class,b);
                break;
        }
    }
}
